package com.ydh.company.mapper;

import com.ydh.company.pojo.WarehousingOutRecordDetail;
import com.ydh.company.pojo.WarehousingOutRecordMain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WarehousingOutRecordMapper {
    /**
     *采购订单详情里查询入库信息
     * @param purchaseOrderNumber
     * @return
     */
    WarehousingOutRecordMain selectRecordByPurchaseOrderNumber(@Param("purchaseOrderNumber") String purchaseOrderNumber);
    WarehousingOutRecordDetail selectDetail(@Param("receiptOutNo")String receiptOutNo);
    /**
     * 增加出入库记录  增加出入库记录主表数据
     * @param warehousingOutRecordMain
     * @return
     */
    int addWarehousingRecordMain(WarehousingOutRecordMain warehousingOutRecordMain);
    /**
     * 增加出入库记录  增加出入库记录主表数据
     * @param warehousingOutRecordDetail
     * @return
     */
    int addWarehousingRecordDetail(WarehousingOutRecordDetail warehousingOutRecordDetail);

}
